package com.jay.media.kit

import java.security.MessageDigest
import java.util.*

/**
 * @author xuzhou4
 * @date 2022/3/22
 */
object MD5Utils {

    fun toLowerCaseString(source: String): String {
        val messageDigest = MessageDigest.getInstance("MD5")
        val digest = messageDigest.digest(source.toByteArray())
        return ByteUtils.toHexString(digest).lowercase(Locale.getDefault())
    }
}